<html>
    <head>
	<script language="JavaScript" type='text/javascript' src='/dwrstudy/dwr/engine.js'></script>
	<script language="JavaScript" type='text/javascript' src='/dwrstudy/dwr/util.js'></script>
	<script language="JavaScript" type='text/javascript' src='/dwrstudy/dwr/interface/JSONLib.js'></script>
	
	<title>Greeting</title>
	<script language="JavaScript">
	    function getJSONFromMap() {
		JSONLib.getJSONFromMap(function(data) {
		    alert(data.name);
		});
	    }
	    function getJSONFromBean() {
		JSONLib.getJSONFromBean(function(data) {
		    var s = "name:" + data.name + "\n";
		    s += "password:" + data.password;
		    alert(s);
		});
	    }
	    function test() {
		JSONLib.test(function(data) {
		    alert(data);
		});
	    }
	</script>
    </head>
    
    <body >
	<ul>
	    <li><input type="button" value="getJSONFromMap" onclick="getJSONFromMap()"/></li>
	    <li><input type="button" value="getJSONFromBean" onclick="getJSONFromBean()"/></li>
	    <li><input type="button" value="test" onclick="test()"/></li>
	</ul>
    </body>
</html>
